package com.ls.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ls.entity.BookingTime;
import com.ls.mapper.BookingTimeMapper;
import com.ls.service.IBookingTimeService;
import com.ls.utils.ResultData;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * <p>
 * 预定时段 服务实现类
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Service
@RequiredArgsConstructor
public class BookingTimeServiceImpl extends ServiceImpl<BookingTimeMapper, BookingTime> implements IBookingTimeService {
    /**查询所有时段*/
    @Override
    public ResultData getBookingTime() {
        List<BookingTime> bookingTimes = list(new LambdaQueryWrapper<BookingTime>());
        return ResultData.successData(bookingTimes);
    }
}
